package arithmetic.functionTest;

import lombok.Data;

/**
 * @author jiangfeng
 * Created on 2020-04-08
 */
public class StudentComparetor {

    public Integer compare(Student s1,Student s2) {
        return s1.getScore().compareTo(s2.getScore());
    }

    public static Integer compareStatic(Student s1, Student s2) {
        return s1.getScore().compareTo(s2.getScore());
    }


}
